﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />

<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/inform.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Homepage/style.css"/>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>
<script>
	$(function(){
		  $(document).keypress(function(e) { 
          // 回车键事件 
		   if(e.which == 13) { 
				$('#mf_sure').trigger("click");
		   } 
         }); 	
		$('#mf_sure').click(function(){
		
			maxtime = $("input[name='maxtime']").val();
			if(maxtime<0 || maxtime>30){
				alert('最大麦时必须大于0，小于30');
				return false;
			}else{
				return true;
			}
			
			
		
		})
	
	})

</script>

</head>



<body>
<div class="home_menu" style="padding-bottom:40px;">
	<include file="Public:home_header" />
	<div style="clear:both"></div>
	<div class="main_wrap">
		<div class="zt" id="zt">
			<include file="Public/leftMenu" />
			
			<div class="yinfor">
				<div class="center_wrap">
					<div class="center_title"><h1>房间管理</h1></div>
					<p class="lr_title">修改房间信息</p>
			<form enctype="multipart/form-data" method="POST" action="{:U('oper')}">
			<div class="mf_body">
				<div class="mf_top">			
					<ul class="unable_mf">
						<li><label>房间ID：</label><span>{:I('session.roomId')}</span></li>
						<li><label>创建时间：</label><span><?php echo date("Y-m-d h:i:s",strtotime($roomInfor['dcreatetime']));?></span></li>
						<li><label>有效时间：</label><span><?php if(!empty($roomInfor['dendtime']))echo date("Y-m-d h:i:s",strtotime($roomInfor['dendtime']));?></span></li>
						<li><label>房间最大人数：</label><span>{$roomInfor.nseats}</span></li>
						<li><label>最大管理数量：</label><span>{$roomInfor.nmaxmgr}</span></li>
						<li><label>已有管理数量：</label><span>{$roomInfor.managerCount}</span></li>
						<li><label>房间室主：</label><span>{$roomInfor.ncreateid}</span></li>
					</ul>
					<ul class="mf_upload">

				
						<li><img src="<?php if(empty($roomInfor['image'])){
					echo "__PUBLIC__/img/noitem.jpg";
					}else{echo $roomInfor['image'];}?>" width="156" height="122" /></li>
						<li><input type="file" name="cimage"></li>													
					</ul>
					<div style="clear:both;"></div>
				</div>
				
				<div class="mf_bottom">
					<ul class="mf_main">
						<if condition="($roomInfor.ifshizhu neq 0)">
							<volist name="fudata" id="vo">
							<li><label>房间副室主{$i}：</label><input type="text" class="mfinput" name="fu[]" value="{$vo.nuserid}"/><if condition="$i eq 1"><i>注：如不设可留空白或填0</i></if></li>
							</volist>					
						</if>

						<li><label>房间名称：</label><input type="text" class="mfinput" name="cname" value="{$roomInfor.cname}" /></li>
						<li><label>最大麦时：</label><input type="text" class="mfinput" name="maxtime" value="{$roomInfor.nmictime}" /><i>注：麦时最少5分钟，最多30分钟</i></li>
						<li><label>用户最大排麦数：</label><input type="text" class="mfinput" name="maxcount" value="{$roomInfor.nmaxwaitmic}" /><i>注：可以使1,2,3或4</i></li>
						<li class="textareali"><label>房间描述：</label><textarea class="textinput" rows="" cols="" name="cdescription">{$roomInfor.cdescription}</textarea></li>
						<li class="textareali"><label>房间广播：</label><textarea class="textinput" rows="" cols="" name="cradio">{$roomInfor.cbroadinfo}</textarea></li>
					</ul>			
				</div>
				
			</div>
			<ul class="mf_btn">
				
				<li><input type="submit"  style="cursor:pointer;" name="mf_sure" id="mf_sure" value="确&nbsp;&nbsp;定"/></li>
				<li class="mf_back" style="background:#73909e;border:none;" onclick=window.location.href="{:U('index')}">返&nbsp;&nbsp;回</li>
			</ul>
			<div style="clear:both;"></div>
			</form>

				</div>
				

			</div>
		</div>
	</div>
</div>
</body>

</html>